function [x, favl, exitflag, output, lambda] = minvar(a,b,c,d,e,f,g,h,i,j,k,l)

[x, favl, exitflag, output, lambda] = fmincon(@main, a, b, c, d, e, f, g);

  function f = main(x)
        f = var((i-j)*x) ;
  end

end 
